basic tools to log on. In any case, obtaining a public IP address from a Linux terminal is of great significance in various aspects and may be available one day.
The following two commands are used: curl and wget. You can use it again.
Curl output in plain text format:
curl icanhazip.com
curl ifconfig.me
curl curlmyip.com
curl ip.appspot.com
curl ipinfo.io/ip
curl ipecho.net/plain
curl www.trackip.net/i
Curl JSON output:
curl ipinfo.io/json
curl ifconfig.me/all.json
Curl www.tracki
Curl Plain Text Format output:Curl Icanhazip.comcurl ifconfig.mecurl curlmyip.comcurl ip.appspot.comcurl ipinfo.io/ipcurl ipecho.net /Plaincurl www.trackip.net/ICurl JSON format output:Curl ipinfo.io/jsoncurl ifconfig.me/all.jsoncurl www.trackip.net/ip?json (a bit ugly)Curl XML Format output:Curl Ifconfig.me/all.xmlCurl gets all IP details (excavator)Curl Ifconfig.me/allUse Dydns (useful when you use the Dydns
Ifconfig.meCurl curlmyip.comCurl ip.appspot.comCurl IPINFO.IO/IPCurl Ipecho.net/plainCurl www.trackip.net/iCurl JSON format output:Curl Ipinfo.io/jsonCurl Ifconfig.me/all.jsonCurl Www.trackip.net/ip?json(A little ugly) Curl XML format output:Curl Ifconfig.me/all.xmlCurl gets all IP details (excavator)Curl Ifconfig.me/allUse Dydns (useful when you use the Dydns service)Curl-s ' http://checkip.dyndns.org ' |
ip.appspot.com
Curl IPINFO.IO/IP
Curl Ipecho.net/plain
Curl www.trackip.net/i
Curl JSON format output:
The code is as follows:
Curl Ipinfo.io/json
Curl Ifconfig.me/all.json
Curl Www.trackip.net/ip?json
(A little ugly)
Curl XML Format output:
The code is as follows:
Curl Ifconfig.me/all.xml
Curl Get all IP details (excavators)
Curl Ifconfig.me/all
Use Dydns (useful when you use the Dydns serv
Internet. The destination is the IP packet of the address in the CIDR block that is directed to the corresponding location.Here are the two commands we use primarily, curl and wget. You can use it for a change.Curl Plain Text format output:Curl JSON format output:Curl XML format output:Curl gets all IP details (excavator)use Dydns (useful when you use the Dydns service)use Wget instead of CurlBash Script E
Curl Plain Text Format output:
Curl icanhazip.com
Curl ifconfig.me
Curl curlmyip.com
Curl ip.appspot.com Curl IPINFO.IO/IP Curl Ipecho.net/plain
Curl www.trackip.net/i
Curl JSON format output:
Curl Ipinfo.io/jsoncurl Ifconfig.me/all.jsoncurl Www.trackip.net/ip?json (a bit ugly)
Curl XML Format output:
Curl Ifconfig.me/all.xml
Curl Get all IP details (excavators)
Curl Ifconfig.me/all
Use Dydns (useful when you use the
Several ways to query the IP of the extranet under Linux. Curl Plain Text Format output:curlicanhazip.comcurlifconfig.mecurlcurlmyip.comcurlip.appspot.comcurlipinfo.io/ipcurlipecho.net/plaincurlwww.trackip.net/iCurl JSON format output:curlipinfo.io/jsoncurlifconfig.me/all.jsoncurlwww.trackip.net/ip?json(有点丑陋)Curl XML Format output:curlifconfig.me/all.xmlCurl gets all IP details (excavator)curlifconfig.me/allUse Dydns (useful when you use the
, getting a public IP from a Linux terminal is meaningful in every way, and might be useful someday.Here are the two commands we use primarily, curl and wget. You can use it for a change.Curl Plain Text Format output:
Curl icanhazip.com
Curl Ifconfig.me
Curl curlmyip.com
Curl ip.appspot.com
Curl IPINFO.IO/IP
Curl Ipecho.net/plain
Curl www.trackip.net/i
Curl JSON format output:
Curl Ipinfo.io/js
, getting a public IP from a Linux terminal is meaningful in every way, and might be useful someday.Here are the two commands we use primarily, curl and wget. You can use it for a change.Curl Plain Text Format output:
Curl icanhazip.com
Curl Ifconfig.me
Curl curlmyip.com
Curl ip.appspot.com
Curl IPINFO.IO/IP
Curl Ipecho.net/plain
Curl www.trackip.net/i
Curl JSON format output:
Curl Ipinfo.io/json
Curl Ifconfig.me/all.json
Curl Www.trackip.ne
Original address: http://my.oschina.net/epstar/blog/513186Curl Plain Text Format output:ifconfig . Mecurl curlmyip.comcurl ip.appspot.comcurl ipinfo.io/ipcurl ipecho.net/Plaincurl Www.trackip.net/ICurl JSON format output:Curl ipinfo.io/ifconfig. me/all.jsoncurl www.trackip.net/ip?json (a bit ugly)Curl XML Format output:ifconfig. Me/all.xmlCurl gets all IP details (excavator)1 ifconfig. Me/allUse Dydns (useful when you use the
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.